<%@ page contentType="text/html;charset=UTF-8" language="java" import="iso3.pt.action.*" %>
<%@ taglib prefix="s" uri="/struts-tags" %>


<html>
	<head>
	    <link href="<s:url value='/css/main.css'/>" rel="stylesheet" type="text/css"/>
	    <title><s:text name="application.title"/></title>
	</head>
	<body>
		<div class="titleDiv"><s:text name="application.title"/></div>
		<h1>
			<s:text name="label.studentSubjectMarks.marksOf"/> " <s:property value="alumno.nombre"/> " <s:text name="label.subjectStudents.forSubject"/> " <s:property value="asignatura.nombre"/> "
		</h1>
		<br/>
		
		<table class="borderAll">
		    <tr>
		        <th><s:text name="header.subjectStudents.dni"/></th>
		        <th><s:text name="header.subjectStudents.name"/></th>
		        <th><s:text name="header.subjectStudents.number"/></th>
		        <th>&nbsp;&nbsp;</th>
		    </tr>
	        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
	            <td class="nowrap"><s:property value="alumno.dni"/></td>
	            <td class="nowrap"><s:property value="alumno.nombre"/></td>
	            <td class="nowrap"><s:property value="alumno.telefono"/></td> 
	        </tr>
		</table>
		<br/><br/>
		<table class="borderAll">
	    	<tr>
		        <th><s:text name="header.lecturerSubjects.code"/></th>
		        <th><s:text name="header.lecturerSubjects.name"/></th>
		        <th><s:text name="header.lecturerSubjects.credits"/></th>
		        <th><s:text name="header.lecturerSubjects.professor"/></th>
		        <th><s:text name="header.lecturerSubjects.nStudents"/></th>
		        <th>&nbsp;&nbsp;</th>
		    </tr>
	       	<tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
	            <td class="nowrap"><s:property value="asignatura.codigo"/></td>
	            <td class="nowrap"><s:property value="asignatura.nombre"/></td>
	            <td class="nowrap"><s:property value="asignatura.creditos"/></td>
	            <td class="nowrap"><s:property value="%{asignatura.profesor.getNombre()}"/></td>
	            <td class="nowrap"><s:property value="%{asignatura.alumnos.size()}"/></td>
	        </tr>
		</table>
		<br/><br/>
		<table class="borderAll">
		    <tr>
		        <th><s:text name="label.studentSubjectMarks.ID"/></th>
		        <th><s:text name="label.studentSubjectMarkingForm.concept"/></th>
		        <th><s:text name="label.studentSubjectMarkingForm.mark"/></th>
		        <th>&nbsp;&nbsp;</th>
		    </tr>
	    <s:iterator value="listaEvaluaciones" status="status">
	        <tr class="<s:if test="#status.even">even</s:if><s:else>odd</s:else>">
	            <td class="nowrap"><s:property value="id"/></td>
	            <td class="nowrap"><s:property value="concepto"/></td>
	            <td class="nowrap"><s:property value="nota"/></td>
	        </tr>
	    </s:iterator>
	</table>
		
	<s:form action="doSubject!cancelSubjectlisting" method="post">
		<s:submit 
			value="%{getText('label.subjectStudents.button')}" 
			align="center"
		/>
	</s:form>
	
</body>
</html>
